package com.neusoft.crm.service.impl;

import com.neusoft.crm.mapper.ClientServerMapper;
import com.neusoft.crm.po.ClientInfo;
import com.neusoft.crm.po.ClientServer;
import com.neusoft.crm.po.DataServerType;
import com.neusoft.crm.po.SysUser;
import com.neusoft.crm.service.IClientServerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 客户请求接口实现类
 *
 * @author msprc
 */
@Service
public class ClientServerServiceImpl implements IClientServerService {

    @Autowired
    ClientServerMapper clientServerMapper;


    @Override
    public List<ClientServer> selectClientServerListByState(ClientServer clientServer) {
        return clientServerMapper.selectClientServerListByState(clientServer);
    }

    @Override
    public int createClientServer(ClientServer clientServer) {
        return clientServerMapper.createClientServer(clientServer);
    }

    @Override
    public int assignClientServer(ClientServer clientServer) {
        return clientServerMapper.assignClientServer(clientServer);
    }

    @Override
    public int deleteClientServer(ClientServer clientServer) {
        return clientServerMapper.deleteClientServer(clientServer);
    }

    @Override
    public List<DataServerType> getAllClientServerTypeName() {
        return clientServerMapper.getAllClientServerTypeName();
    }

    @Override
    public List<ClientInfo> getAllClientName() {
        return clientServerMapper.getAllClientName();
    }

    @Override
    public List<SysUser> getAllSysName() {
        return clientServerMapper.getAllSysName();
    }

    @Override
    public List<ClientServer> selectClientServerByTag(ClientServer clientServer) {
        return clientServerMapper.selectClientServerByTag(clientServer);
    }

    @Override
    public int dealClientServer(ClientServer clientServer) {
        return clientServerMapper.dealClientServer(clientServer);
    }

    @Override
    public int feedbackClientServer(ClientServer clientServer) {
        return clientServerMapper.feedbackClientServer(clientServer);
    }
}
